package com.chixing.day06_static.static_demo;
//懒汉模式
public class Bank2 {
    private static Bank2 bank = null;
    private Bank2(){}

    public static Bank2 getBankInstance(){
        if(bank == null)
            bank = new Bank2();
        return bank;
    }
}
